const assert = require("http-assert");
module.exports = options => {
    return (req, res, next) => {
        switch (req.commonModel.modelName) {
            case "AdminUser":
                assert(false, 403, "请以管理员身份请求");
                return;
        }
        next();
    };
};
